#!/usr/bin/env bash
#安装shadowsocks
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y
sudo apt-get update
sudo apt install shadowsocks-libev -y

scp root@149.28.189.77:/etc/shadowsocks-libev/config.json /etc/shadowsocks-libev/config.json

sudo /etc/init.d/shadowsocks-libev start    # for sysvinit, or
sudo systemctl restart shadowsocks-libev      # for systemd
sudo systemctl enable shadowsocks-libev      # for systemd

systemctl status shadowsocks-libev